package com.zuoye2.domain;

public class GirlFriend {
    //属性
    //姓名
    public String name;
    //身高
    public double height;
    //体重
    public double weight;

    //构造参数
    //有参（满参）
    public GirlFriend(String name,double height,double weight){
    this.name=name;
    this.height=height;
    this.weight=weight;
    }

    //成员方法
    public void wash(){
        System.out.println("女朋友帮我洗衣服");
    }
    public void cook(){
        System.out.println("女朋友给我做饭");
    }
    public void show(){
        System.out.println("我女朋友叫"+name+",身高"+height+"厘米"+",体重"+weight+"斤");
    }
}
